import datetime
class Leapyear:
    def __init__(self):
        self.now = datetime.date.today().year
    def __iter__(self):
        return self
    def isture(self,year):
        if (year %400==0) or (year%4 ==0 and year%100 !=0):
            return True
        else :
            return False
        
    def __next__(self):
        while not self.isture(self.now):
            self.now -=1
        temp=self.now
        self.now -=1
        return temp               
leapyear =Leapyear()

for each in leapyear:
    if each >= 2000:
         print(each)
    else :
        break


    
